* {
  margin: 0;
  padding: 0;
  bottom: 0;
  vertical-align: baseline;
  box-sizing: border-box;
}
body {
  background: hsla(210, 3%, 15%, 1);
  color: hsla(0, 100%, 100%, 0.75);
  font-size: 12px;
  overflow: hidden;
  font-size: 12px;
  height: 100vh;
  width: 100%;
  vertical-align: baseline;
}
// .wrapper {
//   position: relative;
//   width: 100%;
//   height: 100%;
// }
.city {
  display: flex;
  justify-content: center;
  position: absolute;
  width: 100%;
  height: 100vh;
  bottom: 0;
  overflow: hidden;
  box-shadow: inset 0 -60px 0 -30px #4bafac;
}
ul {
  list-style: none;
  position: absolute;
  bottom: 0;
}
.skyscrappers {
  width: 100%;
  height: 86.67px;
  left: 0;
  .item {
    position: absolute;
    height: inherit;
    bottom: 15%;
    width: 43.33px;
    background: linear-gradient(115deg, #4bafac 73%, #3c8b89 73%, #3c8b89 100%);
    &::after {
      content: "";
      position: absolute;
      width: 80%;
      height: 80%;
      left: 10%;
      bottom: 10%;
      background: url("")
        space;
    }
    &.skyscrapper-1 {
      width: 121.33px;
      height: 138.67px;
      right: 25%;
      bottom: 0;
      z-index: 10;
      transform: rotate(180deg);
    }
    &.skyscrapper-2 {
      width: 40.4px;
      right: 45%;
      bottom: 0;
      z-index: 10;
      transform: rotate(180deg);
      height: 115.56px;
    }
  }
}
.crane {
  left: 20%;
  //   z-index: 10;
  //   width: 100%;
  //   bottom: 0;
  width: 260px;
  height: calc(260px / 1.5);
  z-index: 10;
  perspective: 600px;
  .item {
    position: absolute;
    border: 1px solid hsla(178, 40%, 49%, 1);
    border-radius: 2px;
  }
  .cable {
    width: 1px;
    height: 1px;
    border: none;
    outline: 1px solid transparent;
    background-color: hsla(178, 40%, 49%, 1);
    z-index: 0;
    &.cable-1 {
      width: 60%;
      top: 0;
      left: 11%;
      transform-origin: right 0;
      animation: cable-1_movement 12s infinite alternate;
    }
    &.cable-2 {
      width: 19%;
      top: 0;
      right: 8%;
      transform-origin: top left;
      animation: cable-2_movement 12s infinite alternate;
    }
    &.cable-3 {
      height: 30%;
      top: 22%;
      left: 9%;
      transform-origin: right center;
      animation: cable-3_movement 12s ease-in-out infinite alternate;
      &::after {
        content: "";
        display: block;
        position: absolute;
        height: 0.2em;
        width: 9000%;
        bottom: 0;
        left: -4500%;
        background-color: #90d0cd;
        border: 1px solid #4bafac;
      }
    }
  }
  .stand {
    width: 5%;
    height: 100%;
    right: 25%;
    z-index: 1;
    background: linear-gradient(
      to top,
      hsla(178, 40%, 49%, 1),
      desaturate(lighten(hsla(178, 40%, 49%, 1), 30%), 20%)
    );
  }
  .weight {
    width: 8%;
    height: 20%;
    right: 4%;
    top: 12%;
    z-index: 2;
    background-color: #a9d1cf;
    transform-origin: 0 center;
  }
  .cabin,
  .arm {
    transform-origin: 80% center;
    animation: crane-movement 12s infinite alternate;
  }
  .cabin {
    width: 12%;
    height: 9%;
    right: 24%;
    top: 20%;
    z-index: 2;
    background-color: #a9d1cf;
    &::after {
      content: "";
      display: block;
      position: absolute;
      width: 100%;
      height: 10%;
      top: 60%;
      left: 0;
      background-color: white;
    }
  }
  .arm {
    width: 100%;
    height: 7%;
    top: 15%;
    border-top-left-radius: 10px;
    z-index: 3;
    background-color: #a9d1cf;
  }
}
@keyframes crane-movement {
  0%,
  20% {
    transform: rotateY(0);
  }
  70%,
  100% {
    transform: rotateY(45deg);
  }
}
@keyframes cable-1_movement {
  0%,
  20% {
    transform: rotateY(0) rotateZ(-10deg);
  }
  70%,
  100% {
    transform: rotateY(45deg) rotateZ(-10deg);
  }
}

@keyframes cable-2_movement {
  0%,
  20% {
    transform: rotateY(0) rotateZ(29deg);
  }
  70%,
  100% {
    transform: rotateY(15deg) rotateZ(29deg);
  }
}
@keyframes cable-3_movement {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(2500%, -18%);
  }
  60% {
    transform: translate(11000%, -25%);
  }
  70% {
    height: 30%;
    transform: translate(9100%, -25%);
  }
  90%,
  100% {
    height: 80%;
    transform: translate(9100%, -15%);
  }
}
